import request from '@/utils/request';

/** 
 * @package 查询外协加工单列表
 */
export const getOuterFactoryMachiningListApi = (data: any) => {
    return request({
        url: '/system/outerFactoryMachining/list',
        method: 'post',
        data: data
    });
};

/**
 * @package 外协加工单 对账
 */

export const applyReconciliationApi = (data: any) => {
    return request({
        url: '/system/outerFactoryMachining/reconciliation',
        method: 'put',
        data: data
    });
};

/**
 * @package 外协加工单 撤销对账
 */
export const machiningCancelReconciliationApi = (data: any) => {
    return request({
        url: '/system/outerFactoryMachining/revokeReconciliation',
        method: 'put',
        params: data
    });
};

/**
 * @package 删除外协加工单
 */
export const deleteOuterFactoryMachiningApi = (ids: any) => {
    return request({
        url: `/system/outerFactoryMachining/${ids}`,
        method: 'delete',
    });
};